global dreamPar;

% define which parameters should be included in the optimization
% and generate a map of where each entry of 'parVec' fits in the 
% model structure under consideration.
[dreamPar.parMap,dreamPar.parMapTex,...
    dreamPar.rangeMin,dreamPar.rangeMax] = assignPars;

% define which model parameters are not included in the optimization:
assignConstants;

% dreamPar.nModelEvalsMax = 5000;
dreamPar.constNames = modelConstantsNames;
dreamPar.modelCallStr = 'modelResult = cubicmodel(parVec);';
dreamPar.objCallStr = '[objScore,logObjScore] = objectivefun(dreamPar,modelResult);';
dreamPar.measNames = {'yMeas'};
dreamPar.useIniFile = 'dreamDefaultSettings.ini';
% dreamPar.visualizationCall = 'visualization2';
dreamPar.optMethod = 3;
dreamPar.nMeasurements = numel(yMeas);
dreamPar.drawInterval = 25;



